@import "../styles/animation.scss";

.attachments {
  position: absolute;
  left: 30px;
  bottom: 32px;
  display: flex;
  flex-direction: row;
}

.attach-images {
  //position: absolute;
  //left: 30px;
  //bottom: 32px;
  display: flex;
}

.attach-image {
  cursor: default;
  width: 64px;
  height: 64px;
  border: rgba($color: #888, $alpha: 0.2) 1px solid;
  border-radius: 5px;
  margin-right: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--white);

  .attach-image-mask {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all ease 0.2s;
  }

  .attach-image-mask:hover {
    opacity: 1;
  }

  .delete-image {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    float: right;
    background-color: var(--white);
  }
}

.attach-files {
  display: flex;
  flex-direction: row; /* 横向排列 */
  flex-wrap: wrap; /* 允许换行 */
  gap: 10px; /* 文件间距 */
  width: 100%;
}

.attach-file {
  cursor: default;
  display: flex;
  flex-direction: row;
  // column-gap: 4px;
  justify-content: flex-start;
  color: var(--black);
  font-size: 14px;
  border-radius: 5px;
  // width: 40%; /* 限制宽度为30% */
  // max-width: 40%; /* 确保不超过30% */
  box-sizing: border-box; /* 确保padding和border不会增加元素宽度 */

  %attach-file-name-common {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1; /* 让文件名占据剩余空间 */
  }
  
  .attach-file-name-full {
    @extend %attach-file-name-common;
    max-width: 100%; /* 相对于父元素的宽度 */
  }

  .attach-file-name-half {
    @extend %attach-file-name-common;
    max-width: 100%;
  }

  .attach-file-name-less {
    @extend %attach-file-name-common;
    max-width: 100%;
  }

  .attach-file-name-min {
    @extend %attach-file-name-common;
    max-width: 100%;
  }

  .attach-file-name-tiny {
    @extend %attach-file-name-common;
    max-width: 100%;
  }

  .attach-file-icon {
    min-width: 28px;
    max-width: 28px;
  }

  .attach-file-icon:hover {
    opacity: 0;
  }

  .attach-image-mask {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all ease 0.2s;
    position: absolute;
  }

  .attach-image-mask:hover {
    opacity: 1;
  }
  
  .delete-image {
    width: 16px;
    height: 20px;
    cursor: pointer;
    border-radius: 5px;
    float: left;
    background-color: var(--white);
  }
}

/* 手机端响应式优化 */
@media screen and (max-width: 768px) {
  .attach-file {
    width: 45%; /* 在平板上稍微放大一点 */
    max-width: 45%;
  }
}

@media screen and (max-width: 480px) {
  .attach-file {
    width: 100%; /* 在手机上一行显示一个 */
    max-width: 100%;
    margin-right: 0;
  }
  
  .attach-files {
    gap: 8px; /* 减少间距 */
  }
}

.chat-input-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  
  @media (max-width: 600px) {
    flex-direction: column;
    gap: 2px;
  }
  .primary-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    flex-shrink: 1;
    overflow-x: auto;
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  
  .secondary-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;

    @media (max-width: 600px) {
      margin-left: 0;
      flex-wrap: wrap;
      justify-content: flex-start;
      transition: max-height 0.3s ease, opacity 0.3s ease;
      max-height: 200px; /* 足够高以容纳内容 */
      opacity: 1;
      overflow: hidden;
    }
  }
  
  .mobile-collapsed {
    @media (max-width: 600px) {
      max-height: 0;
      opacity: 0;
      margin: 0;
      padding: 0;
    }
  }
  
  > div {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    
    &:first-child {
      flex-shrink: 1;
      overflow-x: auto;
      scrollbar-width: none;
      &::-webkit-scrollbar {
        display: none;
      }
    }
    
    &:last-child {
      flex-shrink: 0;
      margin-left: auto;

      @media (max-width: 600px) {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
      }
    }
  }

  .chat-input-action {
    display: inline-flex;
    border-radius: 20px;
    font-size: 12px;
    background-color: var(--white);
    color: var(--black);
    border: var(--border-in-light);
    padding: 4px 10px;
    animation: slide-in ease 0.1s;
    box-shadow: var(--card-shadow);
    transition: width ease 0.1s;
    align-items: center;
    height: 16px;
    width: var(--icon-width);
    overflow: hidden;
    flex-shrink: 0;

    &:hover {
      --delay: 0.1s;
      width: var(--full-width);
      transition-delay: var(--delay);
      z-index: 1;

      .text {
        transition-delay: var(--delay);
        opacity: 1;
        transform: translate(0);
      }
    }

    .text {
      white-space: nowrap;
      padding-left: 5px;
      opacity: 0;
      transform: translateX(-5px);
      transition: all ease 0.1s;
      pointer-events: none;
    }

    .text,
    .icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .chat-input-action.always-show-text {
    width: var(--full-width) !important;
    transition: none;
    
    .text {
      opacity: 1;
      transform: translate(0);
      pointer-events: auto;
    }
  }
}
.message-actions-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
  
  .chat-input-action {
    display: inline-flex;
    border-radius: 20px;
    font-size: 12px;
    background-color: var(--white);
    color: var(--black);
    border: var(--border-in-light);
    padding: 4px 10px;
    animation: slide-in ease 0.1s;
    box-shadow: var(--card-shadow);
    transition: width ease 0.1s;
    align-items: center;
    height: 16px;
    width: var(--icon-width);
    overflow: hidden;
    flex-shrink: 0;

    &:hover {
      --delay: 0.1s;
      width: var(--full-width);
      transition-delay: var(--delay);
      z-index: 1;

      .text {
        transition-delay: var(--delay);
        opacity: 1;
        transform: translate(0);
      }
    }

    .text {
      white-space: nowrap;
      padding-left: 5px;
      opacity: 0;
      transform: translateX(-5px);
      transition: all ease 0.3s;
      pointer-events: none;
    }

    .text,
    .icon {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  .chat-input-action.always-show-text {
    width: var(--full-width) !important;
    transition: none;
    
    .text {
      opacity: 1;
      transform: translate(0);
      pointer-events: auto;
    }
  }
}

.prompt-toast {
  position: absolute;
  bottom: -50px;
  z-index: 999;
  display: flex;
  justify-content: center;
  width: calc(100% - 40px);

  .prompt-toast-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    background-color: var(--white);
    color: var(--black);

    border: var(--border-in-light);
    box-shadow: var(--card-shadow);
    padding: 10px 20px;
    border-radius: 100px;

    animation: slide-in-from-top ease 0.3s;

    .prompt-toast-content {
      margin-left: 10px;
    }
  }
}

.section-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .section-title-action {
    display: flex;
    align-items: center;
  }
}

.context-prompt {
  .context-prompt-insert {
    display: flex;
    justify-content: center;
    padding: 4px;
    opacity: 0.2;
    transition: all ease 0.3s;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 4px;

    &:hover {
      opacity: 1;
      background-color: rgba(0, 0, 0, 0.05);
    }
  }

  .context-prompt-row {
    display: flex;
    justify-content: center;
    width: 100%;

    &:hover {
      .context-drag {
        opacity: 1;
      }
    }

    .context-drag {
      display: flex;
      align-items: center;
      opacity: 0.5;
      transition: all ease 0.3s;
    }

    .context-role {
      margin-right: 10px;
    }

    .context-content {
      flex: 1;
      max-width: 100%;
      text-align: left;
    }

    .context-delete-button {
      margin-left: 10px;
    }
  }

  .context-prompt-button {
    flex: 1;
  }
}

.memory-prompt {
  margin: 20px 0;

  .memory-prompt-content {
    background-color: var(--white);
    color: var(--black);
    border: var(--border-in-light);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    user-select: text;
  }
}

.clear-context {
  margin: 20px 0 0 0;
  padding: 4px 0;

  border-top: var(--border-in-light);
  border-bottom: var(--border-in-light);
  box-shadow: var(--card-shadow) inset;

  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--black);
  transition: all ease 0.3s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  font-size: 12px;

  animation: slide-in ease 0.3s;

  $linear: linear-gradient(to right,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1),
      rgba(0, 0, 0, 0));
  mask-image: $linear;

  @mixin show {
    transform: translateY(0);
    position: relative;
    transition: all ease 0.3s;
    opacity: 1;
  }

  @mixin hide {
    transform: translateY(-50%);
    position: absolute;
    transition: all ease 0.1s;
    opacity: 0;
  }

  &-tips {
    @include show;
    opacity: 0.5;
  }

  &-revert-btn {
    color: var(--primary);
    @include hide;
  }

  &:hover {
    opacity: 1;
    border-color: var(--primary);

    .clear-context-tips {
      @include hide;
    }

    .clear-context-revert-btn {
      @include show;
    }
  }
}

.chat {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.chat-body {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  padding: 20px;
  padding-bottom: 40px;
  position: relative;
  overscroll-behavior: none;
}

.chat-body-main-title {
  cursor: pointer;

  &:hover {
    text-decoration: underline;
  }
}

@media only screen and (max-width: 600px) {
  .chat-body-title {
    text-align: center;
  }
}

.chat-message {
  display: flex;
  flex-direction: row;

  &:last-child {
    animation: slide-in ease 0.3s;
  }
}

.chat-message-user {
  display: flex;
  flex-direction: row-reverse;

  .chat-message-header {
    flex-direction: row-reverse;
  }
}

.chat-message-header {
  margin-top: 20px;
  display: flex;
  align-items: center;

  .chat-message-actions {
    display: flex;
    box-sizing: border-box;
    font-size: 12px;
    align-items: flex-end;
    justify-content: space-between;
    transition: all ease 0.3s;
    transform: scale(0.9) translateY(5px);
    margin: 0 10px;
    opacity: 0;
    pointer-events: none;

    .chat-input-actions {
      display: flex;
      flex-wrap: nowrap;
    }
  }

  .chat-model-name {
    font-size: 12px;
    color: var(--black);
    margin-left: 6px;
    font-weight: bold;
    min-width: 40%;

    &--clickable { // New modifier class for clickable model names
      text-decoration: underline;
      text-decoration-color: var(--primary); // Or a subtle color, or var(--primary)
      cursor: pointer;
  
      &:hover {
        // Optional: enhance underline or text color on hover for clickable items
        text-decoration-color: var(--second);
        color: var(--primary);
      }
    }
  }
}
// 模型选择器容器
.model-selector {
  min-height: 20px;
  width: 100%;
  max-height: 50vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  
  background-color: var(--white);
  border: var(--border-in-light);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  
  // 添加标题区域
  .model-selector-title {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    color: var(--black);
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-in-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    .model-selector-count {
      font-size: 11px;
      color: #888;
      font-weight: normal;
    }
  }
  
  // 模型选项
  .model-selector-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: all ease 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: slide-in ease 0.3s;
    
    &:last-child {
      border-bottom: none;
    }
    
    .item-header {
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }
    
    .item-title {
      font-size: 13px;
      font-weight: bold;
      color: var(--black);
    }

    .item-icon {
      margin-right: 8px;
      display: flex;
      align-items: center;
    }
    
    .item-provider {
      font-size: 11px;
      color: #666;
      background-color: rgba(0, 0, 0, 0.05);
      padding: 2px 6px;
      border-radius: 10px;
    }
    
    .item-description {
      font-size: 11px;
      color: #666;
      margin-top: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    &:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
    
    // 选中状态
    &-selected {
      border-left: 3px solid var(--primary);
      background-color: rgba(var(--primary-rgb), 0.1);
      padding-left: 9px; // 补偿边框宽度
      
      .item-title {
        color: var(--primary);
        font-weight: bold;
      }
    }
  }
  
  // 无结果状态
  .model-selector-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
  }
}
.chat-message-container {
  max-width: var(--message-max-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  .chat-message-actions {
    display: flex;
    box-sizing: border-box;
    font-size: 12px;
    align-items: flex-end;
    justify-content: space-between;
    transition: all ease 0.3s;
    transform: scale(0.9) translateY(5px);
    margin: 0 10px;
    opacity: 0;
    pointer-events: none;

    .chat-actions-row {
      display: flex;
      flex-wrap: nowrap;
    }
  }

  &:hover {
    .chat-message-edit {
      opacity: 0.9;
    }

    .chat-message-actions {
      opacity: 1;
      pointer-events: all;
      transform: scale(1) translateY(0);
    }
  }
}

.chat-message-user>.chat-message-container {
  align-items: flex-end;
}

.chat-message-avatar {
  position: relative;

  .chat-message-edit {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all ease 0.3s;

    button {
      padding: 7px;
    }
  }

  /* Specific styles for iOS devices */
  @media screen and (max-device-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
    @supports (-webkit-touch-callout: none) {
      .chat-message-edit {
        top: -8%;
      }
    }
  }
}

.chat-message-status {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
  margin-top: 5px;
}

.chat-message-item {
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 10px;
  font-size: 14px;
  user-select: text;
  word-break: break-word;
  border: var(--border-in-light);
  position: relative;
  transition: all ease 0.3s;
}

.chat-message-item-image {
  // width: 100%;
  max-width: 50px;
  margin-top: 10px;
}

.chat-message-item-images {
  width: 100%;
  display: grid;
  justify-content: left;
  grid-gap: 10px;
  grid-template-columns: repeat(var(--image-count), auto);
  margin-top: 10px;
}

.chat-message-item-image-multi {
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.chat-message-item-image,
.chat-message-item-image-multi {
  box-sizing: border-box;
  border-radius: 10px;
  border: rgba($color: #888, $alpha: 0.2) 1px solid;
}

.chat-message-item-files {
  width: 100%;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.chat-message-item-file {
  display: flex;
  flex-direction: row;
  column-gap: 6px;
  text-decoration: underline; /* 添加下划线 */
  color: blue; /*  设置链接颜色，可选 */
}

.chat-message-item-file-icon {
  max-width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat-message-item-file-name {
  max-width:100%;  
}

@media only screen and (max-width: 600px) {
  $calc-image-width: calc(100vw/3*2/var(--image-count));

  .chat-message-item-image-multi {
    width: $calc-image-width;
    height: $calc-image-width;
  }
  
  .chat-message-item-image {
    max-width: calc(100vw/3*2);
  }
}

@media screen and (min-width: 600px) {
  $max-image-width: calc(calc(1200px - var(--sidebar-width))/3*2/var(--image-count));
  $image-width: calc(calc(var(--window-width) - var(--sidebar-width))/3*2/var(--image-count));

  .chat-message-item-image-multi {
    width: $image-width;
    height: $image-width;
    max-width: $max-image-width;
    max-height: $max-image-width;
  }

  .chat-message-item-image {
    max-width: calc(calc(1200px - var(--sidebar-width))/3*2);
  }
}

.chat-message-action-date {
  font-size: 12px;
  opacity: 0.6;
  white-space: wrap;
  transition: all ease 0.6s;
  color: var(--black);
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  padding-right: 10px;
  pointer-events: none;
  z-index: 1;
}

.chat-message-user>.chat-message-container>.chat-message-item {
  background-color: var(--second);

  &:hover {
    min-width: 0;
  }
}

.chat-input-panel {
  position: relative;
  width: 100%;
  padding: 20px;
  padding-top: 10px;
  box-sizing: border-box;
  flex-direction: column;
  border-top: var(--border-in-light);
  box-shadow: var(--card-shadow);

  .chat-input-actions {
    .chat-input-action {
      margin-bottom: 10px;
    }
  }
}

@mixin single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-hints {
  min-height: 20px;
  width: 100%;
  max-height: 50vh;
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;

  background-color: var(--white);
  border: var(--border-in-light);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);

  .prompt-hint {
    color: var(--black);
    padding: 6px 10px;
    animation: slide-in ease 0.3s;
    cursor: pointer;
    transition: all ease 0.3s;
    border: transparent 1px solid;
    margin: 4px;
    border-radius: 8px;

    &:not(:last-child) {
      margin-top: 0;
    }

    .hint-title {
      font-size: 12px;
      font-weight: bolder;

      @include single-line();
    }

    .hint-content {
      font-size: 12px;

      @include single-line();
    }

    &-selected,
    &:hover {
      border-color: var(--primary);
    }
  }
}

.chat-input-panel-inner {
  cursor: text;
  display: flex;
  flex: 1;
  border-radius: 10px;
  border: var(--border-in-light);
}

.chat-input-panel-inner-attach {
  padding-bottom: 80px;
}

.chat-input-panel-inner:has(.chat-input:focus) {
  border: 1px solid var(--primary);
}

// Add this to chat.module.scss
.param-override-header {
  position: relative;
  background-color: rgba(var(--primary-rgb), 0.1);
  border-radius: 10px 10px 0 0;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--primary);
  cursor: default;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
  
  .param-override-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    
    .param-override-icon {
      font-size: 14px;
    }
  }
  
  .param-override-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: var(--border-in-light);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    font-size: 12px;
    z-index: 100;
    max-width: 300px;
    white-space: pre-wrap;
    word-break: break-word;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 5px;
    color: var(--black);
    
    code {
      background-color: rgba(0, 0, 0, 0.05);
      padding: 2px 4px;
      border-radius: 4px;
    }
  }

  &:hover .param-override-tooltip {
    opacity: 1;
    visibility: visible;
  }
}

// Modify the existing chat-input-panel-inner to accommodate the header
.chat-input-panel-inner.with-param-override {
  flex-direction: column;
  
  .chat-input {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

.vision-warning-header {
  position: relative;
  background-color: rgba(255, 187, 0, 0.1); // Amber/yellow background for warning
  border-radius: 10px 10px 0 0;
  padding: 6px 12px;
  font-size: 12px;
  color: #b45309; // Amber/brown text for warning
  cursor: default;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 187, 0, 0.2);
  
  .vision-warning-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    
    .vision-warning-icon {
      font-size: 14px;
    }
  }
  
  .vision-warning-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: var(--border-in-light);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    font-size: 12px;
    z-index: 100;
    max-width: 300px;
    white-space: pre-wrap;
    word-break: break-word;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 5px;
    color: var(--black);
    
    code {
      background-color: rgba(0, 0, 0, 0.05);
      padding: 2px 4px;
      border-radius: 4px;
    }
  }

  &:hover .vision-warning-tooltip {
    opacity: 1;
    visibility: visible;
  }
}

// Modify the chat-input-panel-inner to accommodate the warning header
.chat-input-panel-inner.with-vision-warning {
  flex-direction: column;
  
  .chat-input {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

.chat-input {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  border: none;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
  background-color: var(--white);
  color: var(--black);
  font-family: inherit;
  padding: 10px 90px 10px 14px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  min-height: 68px;
}

.chat-input:focus {}

.chat-input-textarea {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  align-items: center;
  color: white;

  position: absolute;
  right: 30px;
  bottom: 32px;
}

.token-counter {
  font-size: 14px;
  color: #666;
  padding: 2px 4px;
}

.chat-input-send {
  background-color: var(--primary);
  color: white;

  position: absolute;
  right: 30px;
  bottom: 32px;
}

@media only screen and (max-width: 600px) {
  .chat-input {
    font-size: 14px;
  }

  .chat-input-send {
    bottom: 30px;
    padding: 6px 10px;
  }
}


.shortcut-key-container {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.shortcut-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 16px;
}

.shortcut-key-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding: 10px;
  background-color: var(--white);
}

.shortcut-key-title {
  font-size: 14px;
  color: var(--black);
}

.shortcut-key-keys {
  display: flex;
  gap: 8px;
}

.shortcut-key {
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-in-light);
  border-radius: 8px;
  padding: 4px;
  background-color: var(--gray);
  min-width: 32px;
}

.shortcut-key span {
  font-size: 12px;
  color: var(--black);
}